<!-- 详情表单 -->

<template>
  <WebShow>
    <MajorTitle :title="one.monitorPointName">
      <ShowStatus bind="monitorPointStatus" :dict="CORE.DICT.STATUS_ALARM" noLabel />
    </MajorTitle>

    <EasyRow col6>
      <ShowText label="监测点编号" bind="monitorPointCode" />
      <ShowTree v-if="one.monitorPointType === 1" label="上级回路" bind="parentId" :dict="elec_treeDict" />
      <ShowText v-if="one.monitorPointType === 1" label="所属配电柜" bind="loopPowerCabinet" />
      <ShowDict v-if="one.monitorPointType === 1" label="是否进线" bind="loopInletWire" :dict="CORE.DICT.YES" />
      <ShowTree :label="`所在${CORE.MAP.REGION}`" bind="areaId" :dict="CORE.REGION.DICT" allName third />
    </EasyRow>
  </WebShow>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DetailForm',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb(), CORE.mixTree('elec', 'elec_')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
